<?php
class Home extends Controller {
	function Home() {
		parent::Controller();
	}

	function index() {
		$this->load->model('state_model');
		$data['title'] = 'Frool';
		$data['states'] = $this->state_model->readAll();
		$theme = $this->config->item('active_theme');
		$data['content'] = $this->load->view($theme.'home/index', $data, true);
		$this->load->view($theme.'layout', $data);
	}
}
?>
